package com.wlts.wzy.LMGoodsModule.service;

import com.wlts.wzy.expand.MyLambdaQueryWrapper;
import com.wlts.wzy.expand.MyPage;
import com.wlts.wzy.LMGoodsModule.entity.LmGoodsDetails;
import com.baomidou.mybatisplus.extension.service.IService;

import java.io.Serializable;

/**
 * <p>
 * LM商品详细表 服务类
 * </p>
 *
 * @author zhiyong
 * @since 2021-01-29
 */
public interface ILmGoodsDetailsService extends IService<LmGoodsDetails> {

    LmGoodsDetails getById(Serializable id, boolean isUseCache);

    MyPage<LmGoodsDetails> page(LmGoodsDetails lmGoodsDetails, Integer page, Integer size, boolean isUseCache);

    MyPage<LmGoodsDetails> page(LmGoodsDetails lmGoodsDetails, Integer page, Integer size, boolean isUseCache, String dimension);

    MyPage<LmGoodsDetails> page(MyLambdaQueryWrapper<LmGoodsDetails> wrapper, Integer page, Integer size, boolean isUseCache);

    MyPage<LmGoodsDetails> page(MyLambdaQueryWrapper<LmGoodsDetails> wrapper, Integer page, Integer size, boolean isUseCache, String dimension);

    LmGoodsDetails selectOnes(MyLambdaQueryWrapper<LmGoodsDetails> wrapper, boolean isUseCache);

    void delAllPageCache();

    void delDimensionPageCache(String dimension);
}
